package com.huangsm.book.designmodel.parallel.future;

/**
 * Main函数主要负责调用Client发起请求，并使用返回的数据
 * @author huang
 * @date 2019/2/18
 */
public class Main {
    public static void main(String[] args) {
        Client client=new Client();
        Data name = client.request("name");
        System.out.println("请求完毕");
        try {
            Thread.sleep(2000);
        }catch (InterruptedException e){

        }
        System.out.println(name.getResult());
    }
}
